const fs = require('fs'); //node fs

const files = ['./a.txt', './b.txt', './readme.md'];

for (let file of files) {
    const data = fs.readFileSync(file)
    console.log(data.toString());
    // fs.readFile(file, (err, dat) => {
    //     if (err) console.log(err);
    //     console.log(data);
    // })
}